package com.mrjoew.weekend.services.sys;

import com.mrjoew.weekend.entities.po.SysAccountPO;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import java.util.List;

public interface SysAccountService {

    /**
     * 通过用户名加载
     * @param username
     * @return
     * @throws UsernameNotFoundException
     */
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;

    public SysAccountPO save(SysAccountPO sysAccountPO);

    public List<SysAccountPO> list(SysAccountPO sysAccountPO);
}
